/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tolls;

/**
 *
 * @author Aggelos
 */
public class PaymentForm extends javax.swing.JFrame {

    /**
     * Creates new form PaymentForm
     */
    public PaymentForm() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        ArKartas = new javax.swing.JLabel();
        ArKukloforias = new javax.swing.JLabel();
        Ypoloipo = new javax.swing.JLabel();
        PosoPlhrwmhs = new javax.swing.JLabel();
        NeoYpoloipo = new javax.swing.JLabel();
        Shma = new javax.swing.JLayeredPane();
        Shma1 = new javax.swing.JLabel();
        Shma2 = new javax.swing.JLabel();
        Logotupo = new javax.swing.JLabel();
        Image = new javax.swing.JLabel();
        Plaisio = new javax.swing.JPanel();
        Plhrwmh = new javax.swing.JButton();
        Plaisio1 = new javax.swing.JPanel();
        Akyro = new javax.swing.JButton();
        Titlos = new javax.swing.JLabel();
        DiaxwristikhGrammh = new javax.swing.JSeparator();
        Ari8mosKukloforias = new javax.swing.JTextField();
        NeoYpoloipo_ = new javax.swing.JTextField();
        Ypoloipo_ = new javax.swing.JTextField();
        Poso_Plhrwmhs = new javax.swing.JTextField();
        Ari8mosKartas = new javax.swing.JTextField();
        DiaxwristikhGrammh_ = new javax.swing.JSeparator();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setPreferredSize(new java.awt.Dimension(505, 480));
        getContentPane().setLayout(null);

        ArKartas.setFont(new java.awt.Font("Lucida Sans", 0, 12)); // NOI18N
        ArKartas.setForeground(new java.awt.Color(102, 0, 153));
        ArKartas.setText("Αρ. Κάρτας : ");
        getContentPane().add(ArKartas);
        ArKartas.setBounds(10, 200, 90, 20);

        ArKukloforias.setFont(new java.awt.Font("Lucida Sans", 0, 12)); // NOI18N
        ArKukloforias.setForeground(new java.awt.Color(102, 0, 153));
        ArKukloforias.setText("Αρ. Κυκλοφορίας : ");
        getContentPane().add(ArKukloforias);
        ArKukloforias.setBounds(10, 240, 120, 14);

        Ypoloipo.setFont(new java.awt.Font("Lucida Sans", 0, 12)); // NOI18N
        Ypoloipo.setForeground(new java.awt.Color(102, 0, 153));
        Ypoloipo.setText("Υπόλοιπο : ");
        getContentPane().add(Ypoloipo);
        Ypoloipo.setBounds(10, 280, 70, 15);

        PosoPlhrwmhs.setFont(new java.awt.Font("Lucida Sans", 0, 12)); // NOI18N
        PosoPlhrwmhs.setForeground(new java.awt.Color(102, 0, 153));
        PosoPlhrwmhs.setText("Ποσό Πληρωμής :  ");
        getContentPane().add(PosoPlhrwmhs);
        PosoPlhrwmhs.setBounds(10, 340, 120, 15);

        NeoYpoloipo.setFont(new java.awt.Font("Lucida Sans", 0, 12)); // NOI18N
        NeoYpoloipo.setForeground(new java.awt.Color(102, 0, 153));
        NeoYpoloipo.setText("Νέο Υπόλοιπο : ");
        getContentPane().add(NeoYpoloipo);
        NeoYpoloipo.setBounds(10, 380, 110, 15);

        Shma.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, new java.awt.Color(153, 0, 0), null));
        Shma.setToolTipText("");

        Shma1.setFont(new java.awt.Font("Verdana", 0, 36)); // NOI18N
        Shma1.setForeground(new java.awt.Color(102, 0, 153));
        Shma1.setText("Tele-Pass");
        Shma1.setBounds(190, 30, 180, 40);
        Shma.add(Shma1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Shma2.setFont(new java.awt.Font("Lucida Sans", 0, 14)); // NOI18N
        Shma2.setForeground(new java.awt.Color(102, 0, 153));
        Shma2.setText("Automatic Toll Collection System");
        Shma2.setBounds(190, 70, 230, 30);
        Shma.add(Shma2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Logotupo.setFont(new java.awt.Font("Bradley Hand ITC", 0, 10)); // NOI18N
        Logotupo.setForeground(new java.awt.Color(102, 0, 153));
        Logotupo.setText("Developed by ANDIMAGI workgroup");
        Logotupo.setBounds(310, 0, 180, 20);
        Shma.add(Logotupo, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Image.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/toll_image1.jpg"))); // NOI18N
        Image.setToolTipText("");
        Image.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        Image.setBounds(0, 0, 180, 100);
        Shma.add(Image, javax.swing.JLayeredPane.DEFAULT_LAYER);

        getContentPane().add(Shma);
        Shma.setBounds(0, 0, 490, 100);

        Plaisio.setBackground(new java.awt.Color(255, 102, 102));

        Plhrwmh.setFont(new java.awt.Font("Lucida Sans", 0, 12)); // NOI18N
        Plhrwmh.setForeground(new java.awt.Color(102, 0, 153));
        Plhrwmh.setText("ΠΛΗΡΩΜΗ");
        Plaisio.add(Plhrwmh);

        getContentPane().add(Plaisio);
        Plaisio.setBounds(350, 170, 110, 200);

        Plaisio1.setBackground(new java.awt.Color(255, 102, 102));
        Plaisio1.setForeground(new java.awt.Color(255, 102, 102));

        Akyro.setFont(new java.awt.Font("Lucida Sans", 0, 12)); // NOI18N
        Akyro.setForeground(new java.awt.Color(102, 0, 153));
        Akyro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/cancel.gif"))); // NOI18N
        Akyro.setText("ΑΚΥΡΟ");
        Akyro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AkyroActionPerformed(evt);
            }
        });
        Plaisio1.add(Akyro);

        getContentPane().add(Plaisio1);
        Plaisio1.setBounds(350, 370, 110, 40);

        Titlos.setFont(new java.awt.Font("Lucida Sans", 1, 18)); // NOI18N
        Titlos.setForeground(new java.awt.Color(102, 0, 153));
        Titlos.setText("Πληρωμή Κάρτας");
        getContentPane().add(Titlos);
        Titlos.setBounds(150, 120, 170, 22);

        DiaxwristikhGrammh.setForeground(new java.awt.Color(102, 0, 153));
        getContentPane().add(DiaxwristikhGrammh);
        DiaxwristikhGrammh.setBounds(10, 320, 250, 30);

        Ari8mosKukloforias.setEditable(false);
        Ari8mosKukloforias.setForeground(new java.awt.Color(153, 0, 0));
        Ari8mosKukloforias.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Ari8mosKukloforiasActionPerformed(evt);
            }
        });
        getContentPane().add(Ari8mosKukloforias);
        Ari8mosKukloforias.setBounds(130, 240, 110, 20);

        NeoYpoloipo_.setForeground(new java.awt.Color(153, 0, 0));
        NeoYpoloipo_.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NeoYpoloipo_ActionPerformed(evt);
            }
        });
        getContentPane().add(NeoYpoloipo_);
        NeoYpoloipo_.setBounds(130, 380, 110, 20);

        Ypoloipo_.setEditable(false);
        Ypoloipo_.setForeground(new java.awt.Color(153, 0, 0));
        Ypoloipo_.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Ypoloipo_ActionPerformed(evt);
            }
        });
        getContentPane().add(Ypoloipo_);
        Ypoloipo_.setBounds(130, 280, 110, 20);

        Poso_Plhrwmhs.setForeground(new java.awt.Color(153, 0, 0));
        Poso_Plhrwmhs.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Poso_PlhrwmhsActionPerformed(evt);
            }
        });
        getContentPane().add(Poso_Plhrwmhs);
        Poso_Plhrwmhs.setBounds(130, 340, 110, 20);

        Ari8mosKartas.setEditable(false);
        Ari8mosKartas.setForeground(new java.awt.Color(153, 0, 0));
        Ari8mosKartas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Ari8mosKartasActionPerformed(evt);
            }
        });
        getContentPane().add(Ari8mosKartas);
        Ari8mosKartas.setBounds(130, 200, 110, 20);

        DiaxwristikhGrammh_.setForeground(new java.awt.Color(102, 0, 153));
        getContentPane().add(DiaxwristikhGrammh_);
        DiaxwristikhGrammh_.setBounds(10, 160, 460, 30);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void AkyroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AkyroActionPerformed
        // TODO add your handling code here:
        em.getTransaction().rollback();
        em.getTransaction().begin();
        dispose();
    }//GEN-LAST:event_AkyroActionPerformed

    private void Ari8mosKukloforiasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ari8mosKukloforiasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_Ari8mosKukloforiasActionPerformed

    private void NeoYpoloipo_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NeoYpoloipo_ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_NeoYpoloipo_ActionPerformed

    private void Ypoloipo_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ypoloipo_ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_Ypoloipo_ActionPerformed

    private void Poso_PlhrwmhsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Poso_PlhrwmhsActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_Poso_PlhrwmhsActionPerformed

    private void Ari8mosKartasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ari8mosKartasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_Ari8mosKartasActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(PaymentForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(PaymentForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(PaymentForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(PaymentForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new PaymentForm().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Akyro;
    private javax.swing.JLabel ArKartas;
    private javax.swing.JLabel ArKukloforias;
    private javax.swing.JTextField Ari8mosKartas;
    private javax.swing.JTextField Ari8mosKukloforias;
    private javax.swing.JSeparator DiaxwristikhGrammh;
    private javax.swing.JSeparator DiaxwristikhGrammh_;
    private javax.swing.JLabel Image;
    private javax.swing.JLabel Logotupo;
    private javax.swing.JLabel NeoYpoloipo;
    private javax.swing.JTextField NeoYpoloipo_;
    private javax.swing.JPanel Plaisio;
    private javax.swing.JPanel Plaisio1;
    private javax.swing.JButton Plhrwmh;
    private javax.swing.JLabel PosoPlhrwmhs;
    private javax.swing.JTextField Poso_Plhrwmhs;
    private javax.swing.JLayeredPane Shma;
    private javax.swing.JLabel Shma1;
    private javax.swing.JLabel Shma2;
    private javax.swing.JLabel Titlos;
    private javax.swing.JLabel Ypoloipo;
    private javax.swing.JTextField Ypoloipo_;
    // End of variables declaration//GEN-END:variables
}
